package com.example.ploy4j.dto;

import com.example.ploy4j.entity.DeploymentStatus;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class DeploymentJobDto {
    private Long id;
    private String gitRepositoryProjectName; // from GitRepositoryConfig
    private String serverConfigName; // from ServerConfig
    private String branchToDeploy;
    private DeploymentStatus status;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
    private LocalDateTime startedAt;
    private LocalDateTime completedAt;
    private String jarFileName;
    private String remoteJarPath;
    private String triggeredBy;
    private String logOutput; // Consider if full log is always needed or if a summary/link is better for lists
} 